package site.beanyon.now.model.dto;

import site.beanyon.now.model.po.TimePlanPO;

/**
 * 时间计划的数据传输对象
 */
public class TimePlanDTO {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 活动名称
     */
    private String activity;
    /**
     * 时间计划的状态（0：未生效，1：生效）
     */
    private Byte status;

    public TimePlanDTO() {
    }

    public TimePlanDTO(TimePlanPO timePlanPO) {
        this.id = timePlanPO.getId();
        this.activity = timePlanPO.getActivity();
        this.status = timePlanPO.getStatus();
    }

    public TimePlanDTO(Integer id, String activity, Byte status) {
        this.id = id;
        this.activity = activity;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TimePlanDTO{" +
                "id=" + id +
                ", activity='" + activity + '\'' +
                ", status=" + status +
                '}';
    }
}
